﻿using System;

namespace Ue.CQRS.Samples.Infrastructure
{
    public abstract class Single<T>
        where T : new()
    {
        private class SingleHolder
        {
            public static T Instance = new T();
        }

        public static T Instance
        {
            get { return SingleHolder.Instance; }
        }
    }
}